package com.dangdang.digital.model;

import java.io.Serializable;
/**
 * 消息记录.用于将环信消息转存到本地数据库
 * @author lvxiang
 * @date   2015年5月12日 上午10:07:45
 */
public class IMMsg implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8749005198390952554L;
	
	public final static int PARSED_OK =1;
	
	public final static int PARSED_FAIL =0;
	
	//列信息
	private Long id;
	

	private String type;
	
	/**
	 * 消息是否解析成功,1:成功,0:解析失败
	 */
	private Integer parsed;
	
	
	

	private Long created;
	
	private Long modified;
	
	private Long sendTime;
	
	private String chatType;
	
	private String msgId;
	
	

	private String receiver;
	
	private String sender;
	
	private String bodyType;
	
	private String bodyMsg;
	
	private String definedType;
	
	private String definedContent;
	
	private String entity;
	
	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public void setParsed(Integer parsed) {
		this.parsed = parsed;
	}
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Integer getParsed() {
		return parsed;
	}

	
	public void setType(String value) {
		this.type = value;
	}
	
	public String getType() {
		return this.type;
	}
	public void setCreated(Long value) {
		this.created = value;
	}
	
	public Long getCreated() {
		return this.created;
	}
	public void setModified(Long value) {
		this.modified = value;
	}
	
	public Long getModified() {
		return this.modified;
	}
	public void setSendTime(Long value) {
		this.sendTime = value;
	}
	
	public Long getSendTime() {
		return this.sendTime;
	}
	public void setChatType(String value) {
		this.chatType = value;
	}
	
	public String getChatType() {
		return this.chatType;
	}
	public void setMsgId(String value) {
		this.msgId = value;
	}
	
	public String getMsgId() {
		return this.msgId;
	}
	
	public void setBodyType(String value) {
		this.bodyType = value;
	}
	
	public String getBodyType() {
		return this.bodyType;
	}
	public void setBodyMsg(String value) {
		this.bodyMsg = value;
	}
	
	public String getBodyMsg() {
		return this.bodyMsg;
	}
	public void setDefinedType(String value) {
		this.definedType = value;
	}
	
	public String getDefinedType() {
		return this.definedType;
	}
	public void setDefinedContent(String value) {
		this.definedContent = value;
	}
	
	public String getDefinedContent() {
		return this.definedContent;
	}
	public void setEntity(String value) {
		this.entity = value;
	}
	
	public String getEntity() {
		return this.entity;
	}
}

